% fname: routing_oddeven__sel_nop__topology_8x8__.m
% ./noxim -routing oddeven -sel nop -dimx 8 -dimy 8  -sim 10000 -warmup 2000 -size 8 8 -buffer 8 -hs 6 0.2 -hs 7 0.2 -hs 14 0.2 -hs 15 0.2 

function [max_pir, max_throughput, min_delay] = routing_oddeven__sel_nop__topology_8x8__(symbol)

data = [
%             pir      avg_delay     throughput      max_delay       rpackets         rflits
           0.0018        21.9639       0.014502            127            914           7309
           0.0018        22.3378      0.0163729            128            968           7728
           0.0018        23.7376      0.0150734            131            949           7597
           0.0018        21.3061      0.0151794            100            941           7529
           0.0018         21.402      0.0152104            101            913           7301
           0.0018        21.6821      0.0157267            119            928           7423
           0.0018        21.1388      0.0137363            103            879           7033
           0.0018         21.068      0.0149306             91            941           7525
           0.0018        22.0142      0.0155191            109            917           7325
           0.0018        23.2281      0.0146964            158            925           7407
           0.0018        23.3134      0.0152958            131            919           7342
           0.0018        20.7143      0.0146548             89            924           7386
           0.0018        21.1878      0.0153458             95            921           7366
           0.0018        20.7213      0.0147924            103            872           6982
           0.0018         22.997      0.0163053            113            996           7957
           0.0018        21.3101      0.0143279            105            874           6992
           0.0018        20.6087      0.0149107             90            938           7515
           0.0018        21.2399      0.0159617            129            988           7917
           0.0018        22.4929      0.0150984            117            921           7368
           0.0018        20.7396      0.0151552            147            941           7517
           0.0019        22.2018      0.0167771            114           1006           8053
           0.0019        22.8924      0.0154577            126            957           7667
           0.0019        21.8735      0.0164652             96           1004           8035
           0.0019        21.1261      0.0153811            120            936           7506
           0.0019        24.0646      0.0157479            180            945           7559
           0.0019         23.168      0.0168644            114            994           7960
           0.0019        22.5821      0.0152798            105            962           7701
           0.0019        21.3914      0.0158085            133            981           7841
           0.0019        23.7832      0.0158972            137            987           7885
           0.0019        22.0364      0.0162131            110            989           7912
           0.0019        22.1591      0.0157157            142            974           7795
           0.0019        23.4728      0.0160101            107            992           7941
           0.0019        23.8032      0.0153327            157            950           7605
           0.0019        22.1297      0.0153056            107            964           7714
           0.0019        21.8702      0.0152579            103            963           7690
           0.0019        22.2667      0.0162564            116            960           7673
           0.0019        22.6761      0.0157599            139            991           7943
           0.0019        23.2578      0.0152798            135            962           7701
           0.0019        22.7369      0.0160343            103            996           7953
           0.0019        22.2556      0.0151956            128            943           7537
            0.002        23.1084      0.0161111            167           1015           8120
            0.002        23.2306      0.0165176            125           1058           8457
            0.002        21.8263      0.0155723            125            996           7973
            0.002        25.3091      0.0167937            199           1058           8464
            0.002        22.0267      0.0163327            132           1011           8101
            0.002        22.6657       0.016377            111            999           7992
            0.002        24.1216      0.0172766            142           1053           8431
            0.002         24.954      0.0169226            135           1066           8529
            0.002        23.6041      0.0161012            129           1013           8115
            0.002        25.4347      0.0154345            221            973           7779
            0.002        23.0285      0.0167361            107           1053           8435
            0.002        24.3175      0.0161563            175           1033           8272
            0.002        20.5603      0.0160369             84            978           7826
            0.002        24.4846      0.0155079            158            976           7816
            0.002        24.2281      0.0165781            107           1061           8488
            0.002        22.8808      0.0165079            108           1040           8320
            0.002        23.7644      0.0173871            162           1078           8624
            0.002        22.2453      0.0160437            116           1011           8086
            0.002        24.0523      0.0161406            124           1033           8264
            0.002        22.3215      0.0164354            103            986           7889
           0.0021        25.0078      0.0171333            155           1029           8224
           0.0021        24.4791      0.0167242            107           1054           8429
           0.0021        26.5146      0.0180184            205           1098           8793
           0.0021        23.5926      0.0165254            139           1058           8461
           0.0021        22.9991      0.0171012            129           1078           8619
           0.0021        25.9963      0.0175827            160           1090           8721
           0.0021        25.3506      0.0177421            110           1118           8942
           0.0021        24.4347      0.0170159            148           1072           8576
           0.0021        23.0551      0.0175794            146           1107           8860
           0.0021        23.0744      0.0175444            117           1088           8702
           0.0021        27.5585      0.0180516            144           1137           9098
           0.0021        29.0505      0.0179306            350           1129           9037
           0.0021         23.541      0.0173516            183           1111           8884
           0.0021        23.5604      0.0173548            113           1076           8608
           0.0021        24.1492      0.0175357            125           1106           8838
           0.0021        25.1796       0.017744            179           1119           8943
           0.0021        23.6501      0.0175262            153           1086           8693
           0.0021        22.3145      0.0165456            106           1043           8339
           0.0021        23.4398      0.0177313            117           1064           8511
           0.0021        25.0843      0.0175968            169           1091           8728
           0.0022        26.4299      0.0181582            179           1163           9297
           0.0022        27.0642      0.0189303            160           1153           9238
           0.0022        25.1914      0.0178176            115           1087           8695
           0.0022        26.2297      0.0176914            188           1132           9058
           0.0022        23.0669      0.0172996            153           1091           8719
           0.0022        23.0669       0.016879            143           1061           8507
           0.0022        22.9308      0.0167422            137           1070           8572
           0.0022        25.7411      0.0180685            199           1120           8962
           0.0022        24.0913      0.0182321            136           1150           9189
           0.0022        27.2214      0.0188457            197           1206           9649
           0.0022        27.4055      0.0179583            139           1132           9051
           0.0022        23.9081      0.0169306            153           1066           8533
           0.0022        26.5963      0.0189127            207           1189           9532
           0.0022        25.6853      0.0179395            149           1112           8898
           0.0022        24.5573      0.0174746            142           1116           8947
           0.0022        24.0625      0.0185645            118           1152           9208
           0.0022        28.4277      0.0184899            152           1148           9171
           0.0022        25.9991      0.0182258            124           1130           9040
           0.0022         24.118      0.0170933            151           1076           8615
           0.0022        23.5717      0.0177722            111           1102           8815
           0.0023        25.2433      0.0186371            124           1155           9244
           0.0023        23.4192      0.0185714            138           1169           9360
           0.0023        27.7826      0.0192051            237           1228           9833
           0.0023        22.8838      0.0172051            107           1102           8809
           0.0023        25.2535      0.0192619            139           1215           9708
           0.0023        27.1725      0.0186445            178           1194           9546
           0.0023        25.2631       0.018832            142           1205           9642
           0.0023         26.141      0.0186746            191           1177           9412
           0.0023        25.6479       0.018832            164           1207           9642
           0.0023        28.8257      0.0186667            219           1176           9408
           0.0023        25.7692      0.0192439            154           1174           9391
           0.0023        27.6047      0.0202321            169           1275          10197
           0.0023        25.5468      0.0185758            179           1132           9065
           0.0023        23.5221      0.0179683            127           1132           9056
           0.0023        27.3048      0.0188164            233           1204           9634
           0.0023        26.6471      0.0188945            153           1210           9674
           0.0023         26.824      0.0194434            140           1244           9955
           0.0023        23.9862      0.0183909            178           1158           9269
           0.0023        27.5633      0.0195161            192           1209           9680
           0.0023        24.3064      0.0185879            121           1188           9517
           0.0024        29.9883      0.0199941            236           1279          10237
           0.0024        25.4835      0.0186048            131           1154           9228
           0.0024        27.5281      0.0186369            206           1174           9393
           0.0024        28.2806      0.0196563            147           1258          10064
           0.0024        25.6739      0.0196548            177           1239           9906
           0.0024        25.8189      0.0188294            160           1187           9490
           0.0024        25.9958      0.0192742            126           1195           9560
           0.0024        27.1316      0.0189405            148           1193           9546
           0.0024        27.2066      0.0198512            140           1249          10005
           0.0024        24.5354      0.0188512            108           1188           9501
           0.0024        25.8023      0.0187832            151           1199           9617
           0.0024         26.353      0.0183508            143           1136           9102
           0.0024        26.9241      0.0194563            143           1226           9806
           0.0024         28.402      0.0191094            139           1224           9784
           0.0024        31.7247      0.0199434            200           1275          10211
           0.0024        26.7255      0.0191331            182           1184           9490
           0.0024        26.5751      0.0186055            167           1191           9526
           0.0024        25.1861       0.018459            141           1182           9451
           0.0024        28.4622      0.0192168            169           1229           9839
           0.0024        27.0493      0.0183945            210           1176           9418
           0.0025        34.6353        0.02075            205           1308          10458
           0.0025         34.867      0.0218452            236           1376          11010
           0.0025        30.6357      0.0208075            185           1312          10487
           0.0025        31.1338      0.0211484            194           1353          10828
           0.0025        34.1607      0.0200675            352           1263          10114
           0.0025        28.4777      0.0213468            188           1323          10588
           0.0025        27.2758      0.0197298            140           1222           9786
           0.0025        28.7364       0.019793            198           1267          10134
           0.0025        28.8259      0.0200456            176           1264          10103
           0.0025        33.0649      0.0208911            294           1295          10362
           0.0025        27.9874      0.0199023            171           1274          10190
           0.0025        29.0452      0.0193555            286           1238           9910
           0.0025        27.4056      0.0199306            215           1255          10045
           0.0025        29.8351      0.0205278            165           1292          10346
           0.0025        29.2829       0.020791            163           1269          10146
           0.0025        31.9086      0.0194805            206           1247           9974
           0.0025        27.0362      0.0206151            127           1299          10390
           0.0025        28.9777      0.0199127            188           1255          10036
           0.0025        31.1773      0.0200181            267           1241           9929
           0.0025        26.3277      0.0193789            166           1239           9922
           0.0026        30.8104      0.0207817            154           1308          10474
           0.0026        31.9556       0.020084            217           1285          10283
           0.0026         29.636      0.0210625            223           1349          10784
           0.0026        37.7332      0.0212222            442           1338          10696
           0.0026        26.8627      0.0200726            202           1245           9956
           0.0026        30.4581      0.0208828            283           1336          10692
           0.0026        29.4696      0.0200566            208           1284          10269
           0.0026         27.357      0.0208594            175           1336          10680
           0.0026        30.6604      0.0219385            206           1381          11057
           0.0026        34.4019      0.0217984            286           1351          10812
           0.0026          29.49      0.0206429            145           1302          10404
           0.0026        30.2011      0.0202148            218           1293          10350
           0.0026        34.5056      0.0208281            232           1333          10664
           0.0026        38.3416      0.0226734            377           1408          11246
           0.0026        27.6881        0.01975            136           1244           9954
           0.0026        31.0337      0.0215706            241           1336          10699
           0.0026        29.1456      0.0202793            191           1298          10383
           0.0026        32.4649      0.0210258            324           1325          10597
           0.0026        33.5167      0.0213214            229           1345          10746
           0.0026        30.7226      0.0215215            199           1377          11019
           0.0027         35.481      0.0213373            279           1345          10754
           0.0027         36.244      0.0226172            463           1447          11580
           0.0027        34.6435      0.0218008            254           1394          11162
           0.0027        30.7804      0.0219922            187           1407          11260
           0.0027        32.2505      0.0221331            230           1373          10978
           0.0027        31.6234      0.0219062            292           1402          11216
           0.0027        32.0957      0.0212016            242           1316          10516
           0.0027        30.4302      0.0210352            202           1346          10770
           0.0027        31.6278      0.0214609            150           1373          10988
           0.0027        33.6894      0.0221171            220           1394          11147
           0.0027        35.5335       0.022416            458           1434          11477
           0.0027        32.5822      0.0221052            243           1393          11141
           0.0027        30.1287          0.021            219           1344          10752
           0.0027        34.9739      0.0221777            257           1419          11355
           0.0027        35.8518      0.0219266            297           1383          11051
           0.0027        35.6732      0.0220159            258           1386          11096
           0.0027         26.434      0.0201113            145           1288          10297
           0.0027        28.6305      0.0206172            197           1318          10556
           0.0027        29.5756      0.0209961            163           1343          10750
           0.0027        33.3107      0.0213809            301           1368          10947
           0.0028        39.2142      0.0223016            432           1405          11240
           0.0028        34.9831      0.0230879            404           1477          11821
           0.0028        42.6135       0.023416            320           1498          11989
           0.0028        36.1198      0.0225801            317           1444          11561
           0.0028        32.0595      0.0220801            270           1412          11305
           0.0028        37.2596      0.0218829            322           1379          11029
           0.0028        36.1011      0.0222461            290           1424          11390
           0.0028        33.2358      0.0222695            199           1425          11402
           0.0028        38.4331       0.023123            380           1480          11839
           0.0028         33.441      0.0225913            265           1424          11386
           0.0028        39.7238       0.023418            363           1499          11990
           0.0028        32.6591      0.0224544            302           1414          11317
           0.0028        32.0084      0.0223867            155           1433          11462
           0.0028        49.1774      0.0226445            750           1449          11594
           0.0028        41.0081      0.0234067            438           1473          11797
           0.0028        38.1916      0.0228086            293           1461          11678
           0.0028        34.0035       0.022043            236           1411          11286
           0.0028        37.3438      0.0219043            313           1402          11215
           0.0028        34.2526      0.0226445            194           1449          11594
           0.0028        34.5996      0.0225234            334           1441          11532
           0.0029        41.2224      0.0236113            502           1511          12089
           0.0029        38.0626      0.0229473            666           1469          11749
           0.0029        42.6172      0.0225508            421           1442          11546
           0.0029        47.1566      0.0240527            432           1539          12315
           0.0029        30.4763      0.0217619            222           1371          10968
           0.0029        45.6745      0.0239238            434           1530          12249
           0.0029        31.1786      0.0223968            187           1411          11288
           0.0029        38.5217      0.0233984            399           1497          11980
           0.0029        43.7757      0.0232598            523           1489          11909
           0.0029        51.3163      0.0235625            840           1508          12064
           0.0029        44.6509       0.024377            486           1561          12481
           0.0029        43.5144      0.0233145            453           1493          11937
           0.0029        36.0184      0.0232937            317           1467          11740
           0.0029        42.4471      0.0238828            384           1530          12228
           0.0029        44.5755      0.0241052            544           1517          12149
           0.0029         38.641      0.0238591            289           1504          12025
           0.0029        38.4941      0.0241171            224           1520          12155
           0.0029        42.1598      0.0232656            468           1489          11912
           0.0029        37.0378      0.0231071            407           1456          11646
           0.0029         43.314      0.0227012            469           1452          11623
            0.003         66.993      0.0246133           1361           1575          12602
            0.003        39.8638      0.0247676            371           1586          12681
            0.003        40.7997      0.0240371            359           1538          12307
            0.003        43.5577      0.0239473            446           1533          12261
            0.003        58.3648       0.024959            503           1598          12779
            0.003        49.0086       0.023498            424           1503          12031
            0.003        52.3964       0.024043            606           1539          12310
            0.003        48.0442      0.0233301            370           1492          11945
            0.003        32.3098      0.0227619            204           1433          11472
            0.003         39.114      0.0239668            374           1535          12271
            0.003        38.6886      0.0236429            319           1490          11916
            0.003        39.3196      0.0238184            329           1524          12195
            0.003        45.3849      0.0248274            466           1564          12513
            0.003        41.0873      0.0239922            240           1535          12284
            0.003        41.8721      0.0240625            396           1540          12320
            0.003        62.4519      0.0249048            963           1569          12552
            0.003        41.5053      0.0237598            357           1520          12165
            0.003        40.6645      0.0244306            309           1541          12313
            0.003        61.7145      0.0246348           1299           1576          12613
            0.003        46.8264      0.0234277            540           1498          11995
           0.0031        41.7939      0.0247246            263           1582          12659
           0.0031        75.4766      0.0257285            891           1647          13173
           0.0031        52.2502      0.0258135           1225           1627          13010
           0.0031        46.4251      0.0253175            416           1595          12760
           0.0031        35.0798      0.0242698            203           1529          12232
           0.0031        93.9808      0.0244004           1886           1561          12493
           0.0031        51.2454      0.0247754            612           1585          12685
           0.0031        47.4429      0.0244883            511           1567          12538
           0.0031        51.0859      0.0247617            560           1584          12678
           0.0031          54.01      0.0249004            679           1593          12749
           0.0031         78.842      0.0257773            953           1652          13198
           0.0031        40.1362      0.0238555            516           1527          12214
           0.0031        47.0899      0.0248672            435           1591          12732
           0.0031        50.0409      0.0259802            732           1638          13094
           0.0031        74.8772      0.0258398           1033           1653          13230
           0.0031        65.2274      0.0257031            453           1645          13160
           0.0031        47.5062      0.0244048            615           1537          12300
           0.0031        48.4886      0.0246133            547           1576          12602
           0.0031         47.899      0.0250464            353           1554          12423
           0.0031        49.8712      0.0254844            287           1631          13048
           0.0032        51.4959      0.0250298            639           1577          12615
           0.0032        58.0006       0.024668            754           1579          12630
           0.0032        52.2392      0.0253848            642           1626          12997
           0.0032        48.9253         0.0255            662           1606          12852
           0.0032        49.4268      0.0251641            547           1612          12884
           0.0032        70.8425      0.0258984            784           1657          13260
           0.0032        61.1147      0.0264226            527           1665          13317
           0.0032        51.1249      0.0245098            759           1569          12549
           0.0032        45.5954      0.0251426            469           1609          12873
           0.0032         65.059      0.0265176            635           1695          13577
           0.0032        55.9412      0.0253889            744           1600          12796
           0.0032        57.1112      0.0257148            943           1645          13166
           0.0032        47.6726      0.0247754            492           1585          12685
           0.0032        66.2286      0.0263234           1165           1658          13267
           0.0032        96.9288      0.0269802           1373           1700          13598
           0.0032        59.4465      0.0250996            510           1606          12851
           0.0032        66.5561      0.0257402            509           1649          13179
           0.0032        51.0278      0.0258398            421           1653          13230
           0.0032         43.246      0.0241758            386           1549          12378
           0.0032        47.1378      0.0258242            616           1655          13222
           0.0033        92.4014      0.0270293           1839           1729          13839
           0.0033        88.0337      0.0268906           1014           1721          13768
           0.0033        105.284       0.027248           2084           1742          13951
           0.0033        56.4877          0.026            734           1665          13312
           0.0033        57.2087      0.0273829            564           1725          13801
           0.0033        104.295      0.0269199           1259           1724          13783
           0.0033        70.3419      0.0266445            749           1705          13642
           0.0033        73.7691      0.0261836           1026           1676          13406
           0.0033        81.7168      0.0259863           1514           1663          13305
           0.0033        68.9853      0.0265957            914           1700          13617
           0.0033         70.323      0.0266328           1139           1703          13636
           0.0033        78.7252      0.0266133           1201           1703          13626
           0.0033        104.703      0.0258492           2503           1629          13028
           0.0033        101.361      0.0260547           1792           1667          13340
           0.0033        78.9181      0.0267266           1199           1710          13684
           0.0033        61.0935      0.0267715            708           1712          13707
           0.0033          58.85      0.0256309            600           1640          13123
           0.0033        144.677      0.0269863           3477           1728          13817
           0.0033         106.51      0.0270215           1877           1729          13835
           0.0033        53.2601      0.0254766            600           1630          13044
           0.0034        93.5206      0.0269512           1003           1725          13799
           0.0034        176.132      0.0269316           2477           1723          13789
           0.0034        117.438      0.0279883           1978           1793          14330
           0.0034        139.661      0.0281406           2169           1800          14408
           0.0034        96.0107       0.027793           1276           1779          14230
           0.0034        90.7783      0.0278418           1324           1782          14255
           0.0034        74.8823      0.0272031            670           1742          13928
           0.0034        101.663      0.0274043           1235           1755          14031
           0.0034        76.8435      0.0278988           1462           1757          14061
           0.0034        115.015      0.0271875           1902           1741          13920
           0.0034        54.3156      0.0270859            390           1733          13868
           0.0034        195.104      0.0286687           3518           1805          14449
           0.0034        76.5291      0.0262871            782           1682          13459
           0.0034        120.116      0.0285397           1481           1797          14384
           0.0034        78.8364      0.0269453           1121           1724          13796
           0.0034        111.676      0.0282222           1488           1779          14224
           0.0034        119.987       0.027377           2460           1753          14017
           0.0034        83.7098      0.0270469           1092           1733          13848
           0.0034        131.252      0.0270566           2520           1731          13853
           0.0034        97.9025      0.0278691           1736           1785          14269
           0.0035        125.757      0.0275254           1445           1761          14093
           0.0035         89.636       0.027166           1971           1739          13909
           0.0035        80.7302      0.0278613            964           1783          14265
           0.0035        152.846      0.0286816           2524           1837          14685
           0.0035         98.534      0.0275742           1718           1766          14118
           0.0035        143.775      0.0278496           2254           1784          14259
           0.0035        194.439      0.0280625           3227           1797          14368
           0.0035         120.73      0.0276914           2413           1771          14178
           0.0035        90.3397       0.028043           1909           1793          14358
           0.0035        124.155      0.0277031           1342           1774          14184
           0.0035         129.56      0.0273516           2512           1751          14004
           0.0035        77.5075      0.0272227            672           1744          13938
           0.0035        153.535      0.0275391           3261           1762          14100
           0.0035        149.643       0.028498           1993           1825          14591
           0.0035        136.195      0.0287246           1937           1838          14707
           0.0035        176.896      0.0281914           2531           1805          14434
           0.0035        238.673      0.0286934           3995           1838          14691
           0.0035        156.324      0.0282109           1864           1806          14444
           0.0035        80.0685      0.0264609            863           1693          13548
           0.0035        87.7095      0.0269961           1704           1728          13822
           0.0036        414.478       0.027957           8016           1790          14314
           0.0036         141.33      0.0289238           1876           1852          14809
           0.0036        198.907      0.0283242           2597           1811          14502
           0.0036        297.359      0.0283164           3997           1812          14498
           0.0036        249.654       0.028748           2602           1838          14719
           0.0036        105.874      0.0277441           1438           1776          14205
           0.0036        303.648      0.0287363           4796           1837          14713
           0.0036        127.492      0.0286328           2982           1832          14660
           0.0036        222.357      0.0286035           2938           1832          14645
           0.0036        182.957      0.0284648           3171           1822          14574
           0.0036        167.972      0.0281035           2402           1799          14389
           0.0036         294.79      0.0286953           5033           1838          14692
           0.0036        97.2799      0.0282598           1178           1808          14469
           0.0036        174.611      0.0282539           3377           1809          14466
           0.0036        144.666      0.0285527           2361           1825          14619
           0.0036        176.222       0.028416           3444           1819          14549
           0.0036        143.487      0.0274746           1996           1759          14067
           0.0036        185.558      0.0279742           3874           1761          14099
           0.0036        165.602      0.0289316           1697           1852          14813
           0.0036        240.959      0.0281777           4142           1804          14427
];

rows = size(data, 1);
cols = size(data, 2);

data_delay = [];
for i = 1:rows/20,
   ifirst = (i - 1) * 20 + 1;
   ilast  = ifirst + 20 - 1;
   tmp = data(ifirst:ilast, cols-5+1);
   avg = mean(tmp);
   [h sig ci] = ttest(tmp, 0.1);
   ci = (ci(2)-ci(1))/2;
   data_delay = [data_delay; data(ifirst, 1:cols-5), avg ci];
end

figure(1);
hold on;
plot(data_delay(:,1), data_delay(:,2), symbol);

data_throughput = [];
for i = 1:rows/20,
   ifirst = (i - 1) * 20 + 1;
   ilast  = ifirst + 20 - 1;
   tmp = data(ifirst:ilast, cols-5+2);
   avg = mean(tmp);
   [h sig ci] = ttest(tmp, 0.1);
   ci = (ci(2)-ci(1))/2;
   data_throughput = [data_throughput; data(ifirst, 1:cols-5), avg ci];
end

figure(2);
hold on;
plot(data_throughput(:,1), data_throughput(:,2), symbol);

data_maxdelay = [];
for i = 1:rows/20,
   ifirst = (i - 1) * 20 + 1;
   ilast  = ifirst + 20 - 1;
   tmp = data(ifirst:ilast, cols-5+3);
   avg = mean(tmp);
   [h sig ci] = ttest(tmp, 0.1);
   ci = (ci(2)-ci(1))/2;
   data_maxdelay = [data_maxdelay; data(ifirst, 1:cols-5), avg ci];
end

figure(3);
hold on;
plot(data_maxdelay(:,1), data_maxdelay(:,2), symbol);


%-------- Saturation Analysis -----------
slope=[];
for i=2:size(data_throughput,1),
    slope(i-1) = (data_throughput(i,2)-data_throughput(i-1,2))/(data_throughput(i,1)-data_throughput(i-1,1));
end

for i=2:size(slope,2),
    if slope(i) < (0.95*mean(slope(1:i)))
        max_pir = data_throughput(i, 1);
        max_throughput = data_throughput(i, 2);
        min_delay = data_delay(i, 2);
        break;
    end
end
